#define _CRT_SECURE_NO_WARNINGS 1
#include<vector>
#include"vector.h"


void test()
{
	wjb::vector<int> v;
	v.push_back(1);
	v.push_back(1);
	v.push_back(1);
	v.push_back(1);

	int a[] = { 1,2,3,4,5 };
	wjb::vector<int> v1(a,a+4);
	print(v);
	print(v1);
	wjb::vector<int> v2(v);
	print(v2);

	v.pop_back();
	v.pop_back();

	v.pop_back();
	v.pop_back();
	//v.pop_back();

	cout << v1[0] << endl;
	print(v);

	v.insert(v.begin(), 10);
	print(v);

	v.erase(v.begin());
	print(v);


}



void test1()
{
	wjb::vector<int> v;
	v.resize(10, 1);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
}


void test2()
{
	wjb::vector<string> v;
	v.push_back("1111111111111111111111111");
	v.push_back("2222222222222222222222222");
	v.push_back("3333333333333333333333333");

	wjb::vector<string> v1(v);

	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;
}

int main()
{

	//test();
	test2();

	return 0;
}